//
// Created by root on 24-7-9.
//
#include "../include/io.h"
#include "../include/timer.h"
#include "../include/opencloseintr.h"
void printk(char *prompt, ...);
void printint(unsigned int d);
void init_position();
void rollup();
void idt_init() ;
extern volatile unsigned int time;
void kernelmain() {
    unsigned int z = 0;
    init_position();
    idt_init();
    timerinit();
    __asm__ __volatile__("sti");
    while (1) {
        z++;

        if ((time%100==0) ){
        }
        //test second  z%0x00ffffff := 0.5s;

        // if (z%0x00ffffff==0) {
        //     printint(time);
        //     z=0;
        // }

    };
}
